package java_oop.demo04;

/**
 * @author IT_Jay
 * @date 2022/1/24 19:14
 */
//Java中，所有的类都默认（直接或者间接）继承Object
public class Person /*extrnds Object*/ {

    private int money = 10_0000_0000;

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public void say(){
        System.out.println("说了一句话");
    }
}

/**
 * public static void main(String[] args) {
 *         Student student = new Student();
 *         student.say();
 *         System.out.println(student.getMoney());
 *     }
 */